#pragma once
#include <windows.h>
#include "opengl_context.h"

namespace krryn{
namespace system{
	class opengl_context_win32 : public opengl_context{
	public:
		opengl_context_win32(HWND hWnd, opengl_context_win32 *a_Share = 0);
		virtual ~opengl_context_win32();

		virtual void attach();
		virtual void detach();
		virtual void swap_buffers();
	private:
		void setup_pixel_format();
		HWND hWnd;
		HDC hDC;
		HGLRC hRC;
	};
}
}